package com.geping.etl.utils.entity;

import java.util.List;

/**
 * jpa分页返回值封装
 * @Author: wangzd
 * @Date: 18:04 2019/9/6
 */
public class ResponseResult<T> {

    private long total;
    private List<T> rows;

    public ResponseResult() {
    }

    public ResponseResult(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public static ResponseResult success(long total, List rows){
        return new ResponseResult(total,rows);
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
